<?php
			$advice_textarea=$_POST['advice_textarea'];
			$db=@mysqli_connect('localhost','root','123456','db_exchange')//利用mysqli_connect()连接到数据库
			or die("无法连接到数据库");
			mysqli_query($db,"set names 'utf8'");
			$q="insert into tb_advice(advice_textarea) values ('$advice_textarea')";
			$result=mysqli_query($db,$q);//利用mysqli_query()来执行上面的SQL文件，返回结果我true或者false，将结果返回给$result
			if($result){
				echo "<script>alert('反馈成功！');history.back()</script>";
			}
			mysqli_close($db);//断开与数据库的连接
?>